<#assign title="对话框" />
<#include "/anno.head.ftl" />

<a id="func1" href="javascript:;" class="easyui-linkbutton">
    <i class="yvan-icon fa fa-refresh"></i> 功能1
</a>

<a id="func2" href="javascript:;" class="easyui-linkbutton">
    <i class="yvan-icon fa fa-refresh"></i> 功能2
</a>

<div id="dd">Dialog Content.</div>
<#include "/anno.foot.ftl" />
<script>
    $(document).ready(function () {
        $('#func1').click(function () {
            top.$('#dd').dialog({
                title: 'My Dialog',
                width: 400,
                height: 200,
                closed: false,
                cache: false,
                href: '/dev/dialog_1.html',
                modal: true
            });
        });

        $('#func2').click(function () {
            top.layer.open({
                type: 2,
                title: '修改',
                shadeClose: false, resize: true, anim: 0, skin: 'layer-class',
                area: ['400px', '200px'],
                content: '/dev/dialog_1.html'
            });
        });
    });

</script>